﻿using GN.Pay.TradeChannel.DefaultImpl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GN.Pay.TradeChannel.WeiXin.Response;

namespace GN.Pay.TradeChannel.WeiXin.Request
{
    [Serializable]
    class AppPayRequest : APayRequest
    {
        public AppPayRequest(IChannel channel,
            IOrderPayApply order,
            WeiXinConfigure config) : base(channel, order, config)
        {

        }


        /// <summary>
        /// 交易类型
        /// </summary>
        public override string Trade_Type
        {
            get
            {
                return "APP";
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        protected override bool IsAddSignType()
        {
            return false;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="xml"></param>
        /// <param name="config"></param>
        /// <returns></returns>
        protected override PayResponse CreatePayResponse(string xml)
        {
            return new AppPayResponse(xml);
        }
    }
}
